<?php

namespace App\Transformers\DailyRecord;

use App\Models\DailyRecordModel;
use League\Fractal\TransformerAbstract;

class WaitThingsTransformer extends TransformerAbstract
{
    public function transform(DailyRecordModel $dailyRecord) {
        return [
            'username'  =>  $dailyRecord->user->username,
            'code'  =>  $dailyRecord->code,
            'apply_reason'  =>  $dailyRecord->apply_reason,
            'record_type'  =>  $dailyRecord->record_type,
        ];
    }

}